package com.cookor.poi.modules.cms.dao;

import com.cookor.poi.modules.cms.entity.CmsSurvery;
import com.cookor.poi.common.persistence.annotation.MyBatisDao;
import com.cookor.poi.modules.cms.entity.CmsSurveryExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@MyBatisDao
public interface CmsSurveryDao {
    long countByExample(CmsSurveryExample example);

    int deleteByExample(CmsSurveryExample example);

    int deleteByPrimaryKey(String id);

    int insert(CmsSurvery record);

    int insertSelective(CmsSurvery record);

    List<CmsSurvery> selectByExample(CmsSurveryExample example);

    CmsSurvery selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") CmsSurvery record, @Param("example") CmsSurveryExample example);

    int updateByExample(@Param("record") CmsSurvery record, @Param("example") CmsSurveryExample example);

    int updateByPrimaryKeySelective(CmsSurvery record);

    int updateByPrimaryKey(CmsSurvery record);

    void updateHitsAddOne(String id);
}